<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Right triangle</title>
	</head>
	<body>
		<script type="text/javascript">
			for (var a = 1; a<10;a++)
			{
				for (var b = 1; b<10;b++)
				{
					if (b<=a){
						document.write("*");
					}
					
				}
				document.write("<br />");
			}
		</script>
	</body>
</html>
